home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / NeoIntroPP3.0 folder / PowerPlant / NeoBench / Includes / CFiller.h next >
Encoding:
C/C++ Source or Header  |  1994-08-12  |  1.0 KB  |  42 lines  |  [TEXT/MMCC]

  1. /************************************************************
  2.  *
  3.  *    Created: Tuesday, March 29, 1994 2:55:51 PM
  4.  *    CFiller.h
  5.  *    Definition of a dummy persistent object class
  6.  *
  7.  *
  8.  *    Copyright © Neologic Systems 1992-1994. All Rights Reserved.
  9.  *    All rights reserved
  10.  *
  11.  ***********************************************************/
  12. #pragma once            /* Include this file only once */
  13. #ifndef __CFiller__
  14. #define __CFiller__ 1
  15.  
  16. #include CNeoPersistNativeH
  17.  
  18. const NeoID kFillerID            = 20;
  19. enum {kFillerMaxLength            = 1024};
  20. #define kFillerName                 "\pCFiller"
  21.  
  22. class CFiller : public CNeoPersistNative
  23. {
  24. public:
  25.     static CNeoPersist *New(void);
  26.     virtual NeoID        getClassID(void) const;
  27.     virtual long        getFileLength(void) const;
  28.  
  29.                         /** I/O Methods **/
  30.     virtual void        readObject(CNeoStream *aStream, const NeoTag aTag);
  31.     virtual void        writeObject(CNeoStream *aStream, const NeoTag aTag);
  32.  
  33.                         /** Variable Length Methods **/
  34.     static long            GetLength(void) {return FFileLength;}
  35.     static long            SetLength(const long aLength);
  36.  
  37. protected:
  38.     static long            FFileLength;
  39. };
  40.  
  41. #endif
  42.